<include file="application/walletyhbbadmin/view/public/left.html"/>
<div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">管理中心<b>></b><strong>添加广告</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
            <h3><a href="{:U('Guanggao/index')}" class="actionBtn">浏览广告</a>广告管理</h3>
    <form action="{:U('Guanggao/insertGuanggao')}" method="post" enctype="multipart/form-data">
     <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
      <tr>
       <td width="90" align="right">广告名称：</td>
       <td>
        <input type="text" id="title" name="ad_name" value="" size="80" class="inpMain" />
       </td>
      </tr>
         <tr>
             <td width="90" align="right">广告链接：</td>
             <td>
                 <input type="text" id="title" name="ad_link" value="" size="80" class="inpMain" />
             </td>
         </tr>
         <tr>
             <td width="90" align="right">广告图片：</td>
             <td>
                 <input type="file" id="title" name="ad_code" value=""  />
             </td>
         </tr>
         <tr>
             <td width="90" align="right">广告位置名称：</td>
             <td>
                 <input type="text" id="title" name="position_name" value="" size="80" class="inpMain" />
             </td>
         </tr>
         <tr>
             <td width="90" align="right">广告宽度：</td>
             <td>
                 <input type="text" id="title" name="ad_width" value="" size="80" class="inpMain" />
             </td>
         </tr>
         <tr>
             <td width="90" align="right">广告高度：</td>
             <td>
                 <input type="text" id="title" name="ad_height" value="" size="80" class="inpMain" />
             </td>
         </tr>
         <tr>
             <td width="90" align="right">广告描述：</td>
             <td>
                 <textarea type="textarea" name="position_desc"  id="title" value=""  style="width:41%" class="inpMain">
                 </textarea>
             </td>
         </tr>
      <tr>
        <td width="90" align="right">显示：</td>
        <td>
          <input type="radio" value="1" name="enabled" id="0" checked="checked"/>是
      <input type="radio" value="0" name="enabled" id="1"  />否
        </td>
      </tr>

      <tr>
       <td></td>
       <td>
        <input name="submit" class="btn" type="submit" value="提交" />
       </td>
      </tr>
     </table>
    </form>
       </div>
 </div>
 <div class="clear"></div>
<include file="application/walletyhbbadmin/view/public/foot.html"/><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
 <script type="text/javascript">

 onload = function()
 {
   document.forms['action'].reset();
 }

 function douAction()
 {
     var frm = document.forms['action'];

     frm.elements['new_cat_id'].style.display = frm.elements['action'].value == 'category_move' ? '' : 'none';
 }

 </script>
</body>
</html>